package com.sgcc.operate.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sgcc.operate.mapper.OMsgDetailMapper;
import com.sgcc.operate.domain.OMsgDetail;
import com.sgcc.operate.service.IOMsgDetailService;

/**
 * 消息推送明细Service业务层处理
 * 
 * @author sgcc
 * @date 2021-03-26
 */
@Service
public class OMsgDetailServiceImpl implements IOMsgDetailService 
{
    @Autowired
    private OMsgDetailMapper oMsgDetailMapper;

    /**
     * 查询消息推送明细
     * 
     * @param id 消息推送明细ID
     * @return 消息推送明细
     */
    @Override
    public OMsgDetail selectOMsgDetailById(String id)
    {
        return oMsgDetailMapper.selectOMsgDetailById(id);
    }

    /**
     * 查询消息推送明细列表
     * 
     * @param oMsgDetail 消息推送明细
     * @return 消息推送明细
     */
    @Override
    public List<OMsgDetail> selectOMsgDetailList(OMsgDetail oMsgDetail)
    {
        return oMsgDetailMapper.selectOMsgDetailList(oMsgDetail);
    }

    /**
     * 新增消息推送明细
     * 
     * @param oMsgDetail 消息推送明细
     * @return 结果
     */
    @Override
    public int insertOMsgDetail(OMsgDetail oMsgDetail)
    {
        return oMsgDetailMapper.insertOMsgDetail(oMsgDetail);
    }

    /**
     * 修改消息推送明细
     * 
     * @param oMsgDetail 消息推送明细
     * @return 结果
     */
    @Override
    public int updateOMsgDetail(OMsgDetail oMsgDetail)
    {
        return oMsgDetailMapper.updateOMsgDetail(oMsgDetail);
    }

    /**
     * 批量删除消息推送明细
     * 
     * @param ids 需要删除的消息推送明细ID
     * @return 结果
     */
    @Override
    public int deleteOMsgDetailByIds(String[] ids)
    {
        return oMsgDetailMapper.deleteOMsgDetailByIds(ids);
    }

    /**
     * 删除消息推送明细信息
     * 
     * @param id 消息推送明细ID
     * @return 结果
     */
    @Override
    public int deleteOMsgDetailById(String id)
    {
        return oMsgDetailMapper.deleteOMsgDetailById(id);
    }
}
